home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / elm / elm2.4 / src / a_edit.c next >
Encoding:
C/C++ Source or Header  |  1992-10-31  |  1.7 KB  |  64 lines

  1.  
  2. static char rcsid[] = "@(#)$Id: a_edit.c,v 5.2 1992/10/31 19:27:44 syd Exp $";
  3.  
  4. /*******************************************************************************
  5.  *  The Elm Mail System  -  $Revision: 5.2 $   $State: Exp $
  6.  *
  7.  *             Copyright (c) 1988-1992 USENET Community Trust
  8.  *             Copyright (c) 1986,1987 Dave Taylor
  9.  *******************************************************************************
  10.  * Bug reports, patches, comments, suggestions should be sent to:
  11.  *
  12.  *    Syd Weinstein, Elm Coordinator
  13.  *    elm@DSI.COM            dsinc!elm
  14.  *
  15.  *******************************************************************************
  16.  * $Log: a_edit.c,v $
  17.  * Revision 5.2  1992/10/31  19:27:44  syd
  18.  * Clear selection on resync of aliases
  19.  * From: Syd
  20.  *
  21.  * Revision 5.1  1992/10/03  22:58:40  syd
  22.  * Initial checkin as of 2.4 Release at PL0
  23.  *
  24.  *
  25.  ******************************************************************************/
  26.  
  27. /** This routine is for allowing the user to edit their aliases.text
  28.     as they wish. 
  29.  
  30. **/
  31.  
  32. #include "headers.h"
  33.  
  34. edit_aliases_text()
  35. {
  36.     /** Allow the user to edit their aliases text, always resynchronizing
  37.         afterwards.   This routine calls the function edit_a_file()
  38.         to do the actual editing.  Thus editing is done the same
  39.         way here as in mailbox editing.
  40.  
  41.         We will ALWAYS resync on the aliases text file
  42.         even if nothing has changed since, not unreasonably, it's
  43.         hard to figure out what occurred in the edit session...
  44.     **/
  45.  
  46.     char     at_file[SLEN];
  47.  
  48.     sprintf(at_file,"%s/%s", home, ALIAS_TEXT);
  49.     if (edit_a_file(at_file) == 0) {
  50.         return (0);
  51.     }
  52. /*
  53.  *    Redo the hash table...always!
  54.  */
  55.     install_aliases();
  56.  
  57. /*
  58.  *    clear any limit in effect.
  59.  */
  60.     selected = 0;
  61.  
  62.     return(1);
  63. }
  64.